
<?php
/*
 * Last Edited: 27-7-2013
 */
class AdvertiseModel extends Zend_Db_Table_Abstract{
	protected $_name = 'advertise';
	protected $_primary = 'id';
	
    public function getList(){

		$db = Zend_Registry::get('connectDB');
        $mysql = $db->select()
					->from($this->_name);
        $mysql->where("status = 1");
        $list = $db->fetchAll($mysql);
        return $list;
	}
}